﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="employee.aspx.cs" Inherits="TimeIt.beispiele.employee" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Login-Site</title>
    <link rel="stylesheet" type="text/css" href="../style/scripte/spacss.css" />
    <link rel="stylesheet" type="text/css" href="../style/scripte/menu1css.css" />
    <link rel="stylesheet" type="text/css" href="../style/scripte/content.css" />
    <link rel="shortcut icon" href="../style/pictures/logo/iconlogo.png" /> 
    <style type="text/css">
        #form1
        {
            text-align: center;
        }
        .style3
        {
            text-decoration: underline;
        }
        .style5
        {
            width: 20px;
            text-align: left;
        }
        .style6
        {
            width: 153px;
            text-align: left;
        }
        .style7
        {
            width: 61px;
        }
        .style8
        {
            width: 61px;
            text-align: left;
        }
    </style>
</head>
<body>
    <div id="backgroundbody">
        <div id="templatecontent">
            <div id="content_top">
                <div id="menu_o_bg">
                </div>
                <div id="menu_u_bg">
                </div>
                <div id="content_body">
                    <div id="content_bottom">
                    </div>
                </div>
            </div>
            <div id="content_border">
                <div id="menu_o">
                    <!-- Menu_1 Roll_over and drop_down -->
                    <ul id="Navigation">
                        <li><a href=""> </a></li>
                        <li><a href=""> </a></li>
                        <li><a href="login.aspx">Logout</a></li>
                        <li><a href="help.aspx">Hilfe</a></li>
                        <li><a href="impressum.aspx">Impressum</a></li>
                    </ul>
                    <!-- Menu_1 Ende!! -->
                </div>
 
<!-- Contentbereich!! -->
           <div id="hellocontent">
                <p style="font-weight: 700; font-size: large">Welcome, 
                &nbsp;<asp:Label ID="UserName" runat="server" Text="User"></asp:Label>!</p>
           </div>
           <div id="editcontent">

                <form id="form1" runat="server">
                <div id="employee"></div>
                <br />


<!--<p class="style2"><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/beispiele/timeSheet-insert.aspx">User anzeigen mit GridView</asp:HyperLink> </p>--> 
                <p style="text-align: left" class="style3"><strong>Enter new working time: </strong></p>
            <div id="insert_timesheet">
                <table style="width:94%;" align="center">
                    <tr>
                        <td class="style5">
                            Project:
                        </td>
                        <td class="style8">
                            <asp:DropDownList ID="DropDownProject" runat="server" DataSourceID="odsActiveProject" 
                                DataTextField="Name" DataValueField="ID" Height="23px" 
                                ToolTip="Choose the Project which you were working for">
                            </asp:DropDownList>
                        </td>
                        <td class="style6">
    <asp:ObjectDataSource ID="odsActiveProject" runat="server" SelectMethod="getActiveProjects" 
        TypeName="bll.clsProjectCollection"></asp:ObjectDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5" valign="bottom">
                            Date:
                        </td>
                        <td class="style8">
                <asp:Calendar ID="Calendar1" runat="server" BackColor="#3399FF" 
                    BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" 
                    ForeColor="Black" Height="104px" NextPrevFormat="FullMonth" 
                    onselectionchanged="Calendar1_SelectionChanged" 
                    Width="298px" style="text-align: left; margin-left: 0px;" 
                                ToolTip="Calender for choosing the date">
                    <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
                    <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                        VerticalAlign="Bottom" />
                    <OtherMonthDayStyle ForeColor="#999999" />
                    <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                    <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" 
                        Font-Bold="True" Font-Size="12pt" ForeColor="#333399" />
                    <TodayDayStyle BackColor="#CCCCCC" />
                </asp:Calendar>
                            <asp:Label ID="txtDate" runat="server" Text="Selected date" 
                                ToolTip="Choose a date above in the calendar"></asp:Label>
                        </td>
                        <td class="style6">
                            <asp:Label ID="dateError" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            Houres:
                        </td>
                        <td class="style8">
                            <asp:TextBox ID="txtHours" runat="server" 
                                ToolTip="Enter a number!" Width="50px"></asp:TextBox>
                        </td>
                        <td class="style6">
                            <asp:Label ID="txtHoursError" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">Category:</td>
                                            <td style="text-align: left">
                                                <asp:DropDownList ID="DropDownCategory" runat="server" Height="21px" 
                                                    Width="160px">
                                                    <asp:ListItem>Consultation</asp:ListItem>
                                                    <asp:ListItem>Development</asp:ListItem>
                                                    <asp:ListItem>Meeting</asp:ListItem>
                                                    <asp:ListItem>Support</asp:ListItem>
                                                    <asp:ListItem>Other</asp:ListItem>
                                                </asp:DropDownList>
                         </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            Description: 
                        </td>
                        <td class="style8">
                            <asp:TextBox ID="txtDescription" runat="server" 
                                ToolTip="Please enter a description" Width="152px"></asp:TextBox>
                        </td>
                        <td class="style6">
                            <asp:Label ID="txtDescriptionError" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            Chargeable:</td>
                        <td class="style8">
                            <asp:CheckBox runat="server" ID="checkChargeable" 
                                ToolTip="Is this chargeable or not for the customer" />
                        </td>
                        <td class="style6">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">

                            &nbsp;</td>
                        <td class="style7">
                        
                            <asp:Button ID="insertTime" runat="server" onclick="btninsert_Click" 
                                Text="Submit time.." Width="102px" 
                                ToolTip="Please submit after each field has filled" />
                        
                        </td>
                    </tr>
                </table>

                            <asp:Label ID="checkMsg" runat="server"></asp:Label>

                <br />
                <p style="text-align: left" class="style3"><strong>My worked times:</strong></p>
                <asp:ObjectDataSource ID="odsTimeSheet" runat="server" SelectMethod="GetTimeSheetbySession"
                    TypeName="bll.clsTimeSheetCollection"></asp:ObjectDataSource>
                <br />

                <asp:GridView ID="grdTimeSheet" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    DataSourceID="odsTimeSheet" ForeColor="Black" GridLines="Horizontal"
                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" 
                    BorderWidth="1px" Width="796px" PageSize="5" AllowPaging="True">
                    <Columns>
                        <asp:BoundField DataField="ProjectID" HeaderText="ProjectID" 
                            SortExpression="ProjectID" />
                        <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" 
                            DataFormatString="{0:dd/MM/yyyy}" />
                        <asp:BoundField DataField="Hours" HeaderText="Hours" 
                            SortExpression="Hours" />
                        <asp:BoundField DataField="Description" HeaderText="Description" 
                            SortExpression="Description" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F7F7F7" />
                    <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                    <SortedDescendingCellStyle BackColor="#E5E5E5" />
                    <SortedDescendingHeaderStyle BackColor="#242121" />
                </asp:GridView>

                <br />
            </div>
                <br />
                </form>
          </div>

<!-- Contentbereich Ende!! -->
        <div id="logo">
        </div>
    </div>
    </div>
    </div>
</body>
</html>
